import request from '@/utils/request.js'
// 登录接口
// 微信小程序登录
export const toLoginApi=(code)=>{
	return request("/user/wxapp/login","post",{
		code:code,
		type:2
	})
}
// 登录2  手机授权登录
 export const  loginWxaMobile=(code, encryptedData, iv)=>{
	return request('/user/wxapp/login/mobile', 'post', {
		code: code,
		encryptedData: encryptedData,
		iv: iv
	});
}


// 注册接口
// data 发送的数据
// encryptedData
// iv
// code
// referrer : 推荐人
export const RegApi=(data)=>{
	return request("/user/wxapp/register/complex","post",data)
}

